home *** CD-ROM | disk | FTP | other *** search
- # Clean
-
- Loop
- Break if {#} == 0
- If "{1}" == "--distclean"
- Set DISTCLEAN "--distclean"
- Else If "{1}" == "--maintainerclean"
- Set MAINTAINERCLEAN "--maintainerclean"
- Set DISTCLEAN "--distclean"
- Else
- Echo "{0}: Unknown thingy '{1}' on the command line."
- Exit 1
- End
-
- Shift
- End
-
- Set TARG ":"
- Echo "Cleaning {1}..."
- If `Exists "{TARG}(Temporary)"`
- Echo "> (Temporary)"
- Delete -i -y "{TARG}(Temporary)"
- End
- If `Exists "{TARG}(Objects)"`
- Echo "> (Objects)"
- Delete -i -y "{TARG}(Objects)"
- End
- If "{DISTCLEAN}"
- If `Exists "{TARG}(Libraries)"`
- Echo "> (Libraries)"
- Delete -i -y "{TARG}(Libraries)"
- End
- If `Exists "{TARG}(Executables)"`
- Echo "> (Executables)"
- Delete -i -y "{TARG}(Executables)"
- End
- If `Exists "{TARG}<Pre-gen>"`
- Echo "> <Pre-gen>"
- Delete -i -y "{TARG}<Pre-gen>"
- End
- End
- If "{MAINTAINERCLEAN}"
- If `Exists "{TARG}<Pre-gen>"`
- Echo "> <Pre-gen>"
- Delete -i -y "{TARG}<Pre-gen>"
- End
- If `Exists "{TARG}[Dependencies]"`
- Echo "> [Dependencies]"
- Delete -i -y "{TARG}[Dependencies]"
- End
- End
-
- Echo "All clean."
-
- Exit
- # The end.
-